package com.example.service;

import com.example.model.PageBean;
import com.example.model.order.OrderAddRequest;
import com.example.model.order.OrderAllInfo;

import java.util.List;

public interface OrderService {
    //生成订单
    Long addOrder(OrderAddRequest orderAddRequest);

    //根据id查询订单所有信息
    OrderAllInfo getOrderById(Long id);

    //根据用户id获取订单信息
    List<OrderAllInfo> getByUserId(Long userId);

    //获取所有订单
    PageBean getAllOrder(Integer pageSize, Integer pageNum,String orderNumber,Long hotelId,String username);

    //根据酒店获取订单信息
    List<OrderAllInfo> getByHotelId(Long hotelId);

    //获取订单状态
    Integer getOrderStatus(Long id);

    //修改订单状态
    Boolean updateOrderStatus(Long id, Integer status, Long roomId);
}
